﻿<Grid x:Class="Guitar.Rubban"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:Guitar"
       xmlns:custom="clr-namespace:Guitar.CustomControls"
              xmlns:module="clr-namespace:Module"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
               xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary" >

    <ProgressBar Height="21" HorizontalAlignment="Right" Margin="0,1,0,0" Name="progressBarCPU" VerticalAlignment="Top" Width="110" BorderBrush="#FF797171" HorizontalContentAlignment="Center">
        <ProgressBar.Background>
            <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                <GradientStop Color="#00539696" Offset="0" />
                <GradientStop Color="#574CEFEF" Offset="1" />
            </LinearGradientBrush>
        </ProgressBar.Background>
        <ProgressBar.Foreground>
            <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                <GradientStop Color="#FF15C219" Offset="1" />
                <GradientStop Color="#FFF20716" Offset="1" />
            </LinearGradientBrush>
        </ProgressBar.Foreground>
    </ProgressBar>
    <Label Height="20" HorizontalAlignment="Right" Margin="0,2,68,0" VerticalAlignment="Top" Width="30" Foreground="#FF1A1717" FontWeight="Bold" HorizontalContentAlignment="Center" Padding="1">Cpu :</Label>
    <Label Height="20" HorizontalAlignment="Right" Margin="0,2,33,0" Name="labelCpu" VerticalAlignment="Top" Width="33" Foreground="#FF1A1717" FontWeight="Bold" HorizontalContentAlignment="Center" Padding="1">0</Label>
    <Label Height="20" HorizontalAlignment="Right" Margin="0,2,18,0" VerticalAlignment="Top" Width="20" Foreground="#FF1A1717" FontWeight="Bold" HorizontalContentAlignment="Center" Padding="1">%</Label>


    <ribbon:Ribbon Grid.Column="0" FocusedBackground="#FFD14343" Margin="0,-22,0,0" Name="MainRibbon"   OverridesDefaultStyle="False" BorderBrush="#B9151414" FontWeight="SemiBold"  Foreground="#FF141414" Background="{x:Null}" IsDropDownOpen="True" IsManipulationEnabled="True" IsMinimized="False">
        <ribbon:Ribbon.ApplicationMenu   >
            <ribbon:RibbonApplicationMenu Width="80" Label="Menu" Background="#FF00A3D4" FocusedBackground="#FF001900" FocusedBorderBrush="#FF009600" MouseOverBackground="#FFD83D3D" ToolTip="Menu" ToolTipDescription="Menu de  Master Guitar reader " BorderBrush="#E4003100" SmallImageSource="/Guitar;component/Images/ic/configure-256.png">

                <ribbon:RibbonApplicationMenuItem Header="{DynamicResource LANG_NEW}"  Command="local:MainWindow.NouveauCommand" ImageSource="..\Images\ic\filenew-256.png" Name="MenuItemNouveau" />
                <ribbon:RibbonApplicationMenuItem Header="{DynamicResource LANG_OPEN}" Command="local:MainWindow.OuvrirCommand" ImageSource="..\Images\ic\fileopen-256.png" Name="MenuItemOuvrir" />
                <ribbon:RibbonApplicationMenuItem Header="{DynamicResource LANG_SAVE}"   Command="local:MainWindow.EnregistrerCommand" ImageSource="..\Images\ic\filesave-256.png" Name="MenuItemEnregistrer" />
                <ribbon:RibbonApplicationMenuItem Header="{DynamicResource LANG_SAVEAS}" Command="local:MainWindow.EnregistrerSousCommand" ImageSource="..\Images\ic\filesaveas-256.png" Name="MenuItemEnregistrerSous" />
                <ribbon:RibbonApplicationMenuItem Header="{DynamicResource LANG_PRINT}" Command="local:MainWindow.ImprimerCommand" ImageSource="/Guitar;component/Images/ic/tab-256.png" Name="MenuItemImprimer" />
                <ribbon:RibbonApplicationMenuItem Header="{DynamicResource LANG_SETTINGS}" Command="local:MainWindow.OptionCommand" ImageSource="..\Images\ic\run-256.png" Name="MenuItemOption" />
                <ribbon:RibbonApplicationMenuItem Header="{DynamicResource LANG_ABOUT}" ImageSource="/Guitar;component/Images/ic/help-256.png" Name="MenuItemAbout" />
                <ribbon:RibbonApplicationMenuItem Header="{DynamicResource LANG_EXIT}" Command="local:MainWindow.QuitterCommand" ImageSource="..\Images\ic\cancel-256.png" Name="MenuItemQuitter" />
            </ribbon:RibbonApplicationMenu>
        </ribbon:Ribbon.ApplicationMenu>

        <ribbon:RibbonTab Background="#FF902727" Header="{DynamicResource RUBAN_ONGLET_PISTE}" FontWeight="Normal"  Name="Piste" >

            <ribbon:RibbonGroup Name="GroupPiste">
                <ribbon:RibbonGroup.Header >
                    <TextBlock Foreground="{StaticResource ribbonHeaderColor}">Pistes</TextBlock>
                </ribbon:RibbonGroup.Header>
                <ribbon:RibbonButton  Name="AddPiste" Label="Ajouter Piste" LargeImageSource="/Guitar;component/Images/ic/edit_add-256.png" Click="AddPiste_Click">
        
                </ribbon:RibbonButton >

                <ribbon:RibbonButton Label="Supprimer la piste courante" LargeImageSource="/Guitar;component/Images/ic/cancel-256.png" Name="GroupPisteBtnSupprimer" />

            </ribbon:RibbonGroup>
            <ribbon:RibbonGroup   Name="GroupMesure">
                <ribbon:RibbonGroup.Header >
                    <TextBlock Foreground="{StaticResource ribbonHeaderColor}"> Mesures</TextBlock>
                </ribbon:RibbonGroup.Header>
                <ribbon:RibbonButton Label="Ajouter une mesure" Name="BtnAjouterMesure"  SmallImageSource="/Guitar;component/Images/ic/view_right-256.png" Click="BtnAjouterMesure_Click" />
                <ribbon:RibbonButton Label="Supprimer mesure" Name="BtnSupprimerMesure" IsEnabled="False" SmallImageSource="/Guitar;component/Images/ic/view_remove-256.png" Click="BtnSupprimerMesure_Click" />
            </ribbon:RibbonGroup>
        </ribbon:RibbonTab>
        <ribbon:RibbonTab Background="#FF902727"   FontWeight="Normal" Header="Notes" Name="Note">
            <ribbon:RibbonGroup  Name="GroupNote" IsEnabled="False">
                <ribbon:RibbonGroup.Header >
                    <TextBlock Foreground="{StaticResource ribbonHeaderColor}">Ajout / modification de notes</TextBlock>
                </ribbon:RibbonGroup.Header>

                <ribbon:RibbonButton Label="Noire" SmallImageSource="/Guitar;component/Images/ic/noire.png" Name="btnNoire" Click="btnNoire_Click" />
                <ribbon:RibbonButton Label="Blanche" Name="btnBlanche" Click="btnBlanche_Click" SmallImageSource="/Guitar;component/Images/ic/blanche.png" />
                <ribbon:RibbonButton Label="Ronde" Click="btnRonde_Click" Name="btnRonde" SmallImageSource="/Guitar;component/Images/ic/ronde.png" />
                <ribbon:RibbonButton Label="Croche" Click="btnCroche_Click"  Name="btnCroche" SmallImageSource="/Guitar;component/Images/ic/croche.png" />
                <ribbon:RibbonButton Label="Double Croche" Click="btnDoubleCroche_Click" Name="btnDoubleCroche" SmallImageSource="/Guitar;component/Images/ic/doublecroche.png" />
                <ribbon:RibbonButton Label="Trible Croche" Click="btnTripleCroche_Click" Name="btnTripleCroche" SmallImageSource="/Guitar;component/Images/ic/triplecroche.png" />
                <ribbon:RibbonButton Label="Quadruple Croche" Click="btnQuadrupleCroche_Click" Name="btnQuadrupleCroche" SmallImageSource="/Guitar;component/Images/ic/quaduplecroche.png" />
                <ribbon:RibbonToggleButton   Label="Activer Pointure" Name="btnPointure"  SmallImageSource="/Guitar;component/Images/ic/pointure.png" >
                 
                </ribbon:RibbonToggleButton>

                <ribbon:RibbonButton  Name="AddChord" Label="Ajouter Accord" LargeImageSource="/Guitar;component/Images/ic/edit_add-256.png" Click="AddPiste_Click">

                </ribbon:RibbonButton >
                <StackPanel Name="NotePanel"  Orientation="Horizontal">
                    <Label VerticalContentAlignment="Center"  Padding="1" Height="22" Margin="17,0,10,0">Note :</Label>

                </StackPanel>
            </ribbon:RibbonGroup>
            <ribbon:RibbonGroup   Name="GroupSilence">
                <ribbon:RibbonGroup.Header >
                    <TextBlock Foreground="{StaticResource ribbonHeaderColor}">Silences et pauses</TextBlock>
                </ribbon:RibbonGroup.Header>

                <ribbon:RibbonButton Label="Pause" Name="btnPause" Click="btnPause_Click" SmallImageSource="/Guitar;component/Images/ic/btnpause.png" />
                <ribbon:RibbonButton Label="Demi Pause" Name="btnDemiPause" Click="btnDemiPause_Click" SmallImageSource="/Guitar;component/Images/ic/btndemipause.png" />
                <ribbon:RibbonButton Label="Soupir" IsEnabled="False" Name="GroupNoteOperationButton3" SmallImageSource="..\Images\SmallIcon.png" />
                <ribbon:RibbonButton Label="DemiSoupir" IsEnabled="False" Name="GroupNoteOperationButton4" SmallImageSource="..\Images\SmallIcon.png" />
            </ribbon:RibbonGroup>
            <ribbon:RibbonGroup   Name="GroupNoteOperation">
                <ribbon:RibbonGroup.Header >
                    <TextBlock Foreground="{StaticResource ribbonHeaderColor}">Opération sur les notes</TextBlock>
                </ribbon:RibbonGroup.Header>

            </ribbon:RibbonGroup>
        </ribbon:RibbonTab>
        <ribbon:RibbonTab  Background="#FF902727" FontWeight="Normal" Header="{DynamicResource RUBAN_ONGLET_GUITAR}" Name="HomeTab">
            <ribbon:RibbonGroup  Name="Group1" Background="{x:Null}" >
                <ribbon:RibbonGroup.Header >
                    <TextBlock Foreground="{StaticResource ribbonHeaderColor}" >Accordage</TextBlock>
                </ribbon:RibbonGroup.Header>
                <module:Accordeur  x:Name="Module_Accordeur" ></module:Accordeur>

            </ribbon:RibbonGroup>
            <ribbon:RibbonGroup  Name="Group2" Background="{x:Null}" >
                <ribbon:RibbonGroup.Header >
                    <TextBlock Foreground="{StaticResource ribbonHeaderColor}" >Métronome</TextBlock>
                </ribbon:RibbonGroup.Header>


            </ribbon:RibbonGroup>
        </ribbon:RibbonTab>
        <ribbon:RibbonTab  Background="#FF902727" Header="{DynamicResource RUBAN_ONGLET_MANCHE}" FontWeight="Normal"  Name="Manche" >

            <module:Manche x:Name="Module_Manche"   Height="84" Width="720" Margin="0,-70,0,0"  Language="Fr"></module:Manche>

        </ribbon:RibbonTab>
        <ribbon:RibbonTab Background="{x:Null}"  FontWeight="Normal" Header="{DynamicResource RUBAN_ONGLET_AFFICHAGE}" Name="Affichage"  OpacityMask="{x:Null}" >
            <ribbon:RibbonGroup Name="GroupVuepiste">
                <ribbon:RibbonGroup.Header >
                    <TextBlock Foreground="{StaticResource ribbonHeaderColor}">Vues des pistes</TextBlock>
                </ribbon:RibbonGroup.Header>
                <ribbon:RibbonToggleButton   Name="btnMasquerNotation" Label="Masquer notes lassique" LargeImageSource="/Guitar;component/Images/ic/playlist-256.png" Click="btnMasquerNotation_Click"></ribbon:RibbonToggleButton>
            </ribbon:RibbonGroup>
            <ribbon:RibbonGroup Name="GroupZoom">
                <ribbon:RibbonGroup.Header >
                    <TextBlock Foreground="{StaticResource ribbonHeaderColor}">Zoom et ajustements</TextBlock>
                </ribbon:RibbonGroup.Header>
                <ribbon:RibbonButton   Label="Zoom " LargeImageSource="/Guitar;component/Images/ic/viewmag1-256.png" Name="btnZoom100" Click="btnZoom100_Click" />
<StackPanel Orientation="Horizontal"><ribbon:RibbonButton SmallImageSource="/Guitar;component/Images/ic/viewmag-256.png" Name="btnZoomPerso" />
                    <ribbon:RibbonComboBox Name="ComboZoom">
                        
                    </ribbon:RibbonComboBox>
                </StackPanel>
            </ribbon:RibbonGroup>
        </ribbon:RibbonTab>

    </ribbon:Ribbon>


    <Grid.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="Transparent" Offset="0" />
            <GradientStop Color="#ADFFFFFF" Offset="0.145" />
            <GradientStop Color="#18FFFFFF" Offset="0.041" />
            <GradientStop Color="#FFB1DFF2" Offset="1" />
            <GradientStop Color="#B4E9EFF2" Offset="0.145" />
        </LinearGradientBrush>
    </Grid.Background>
</Grid>
